package libs;

public class Test {
	
	public void divide(){
		System.out.println("result 1 : " + (999/1000));
		System.out.println("result 2 : " + (-999/1000));
	}
	
	public void pattern1(){
		String pattern = "[a-zA-Z0-9]{3,20}@hongngochospital.com";
		String str1 = "trungnq@hongngochospital.com";
		String str2 = "toannn10@hongngochospital.com";
		System.out.println("Result = " + str1.matches(pattern));
		System.out.println("Result = " + str2.matches(pattern));
	}
	
	public static void main(String[] args) {
		Test test = new Test();
		test.pattern1();
	}
	
	
}
